package net.begincode.blog.service;


import net.begincode.blog.bean.param.KeyWordsQueryParam;
import net.begincode.blog.bean.vo.HotKeyWord;
import net.begincode.blog.bean.vo.KeyWord;
import net.begincode.blog.entity.KeyWords;
import net.begincode.page.PageRequest;
import net.begincode.page.PageResponse;

import java.util.List;

public interface KeyWordsService {
    //新增关键字
    int addKeyWord(KeyWords keyWords);
    //修改关键字
    int updateKeyWordById(KeyWords keyWords);
    //删除关键字
    int delKeyWordById(Long keyWordId);
    //分页查询关键字
    PageResponse<KeyWords> queryKeyWords(KeyWordsQueryParam keyWordsQueryParam);
    //全量关键字
    List<KeyWords> queryAllEffect();
    //id查询
    KeyWords selectById(Long keyWordId);
    //最热关键词
    List<HotKeyWord> queryHotKeyWord(Integer limit);
}
